package com.wlyuan.open.assembler;

import org.mapstruct.Mapping;

/**
 * @author
 * 订单创建转化
 */
@Mapping(source = "fromAddress",target = "fromAddress")
@Mapping(source = "toAddress",target = "toAddress")
@Mapping(source = "fromContact.name",target = "fromAddress.contactName")
@Mapping(source = "fromContact.mobile",target = "fromAddress.contactMobile")
@Mapping(source = "toContact.name",target = "toAddress.contactName")
@Mapping(source = "toContact.mobile",target = "toAddress.contactMobile")
@Mapping(source = "transport.mode",target = "transportMode")
@Mapping(source = "transport.pick",target = "pick")
@Mapping(source = "transport.deliver",target = "deliver")
@Mapping(source = "transport.insure",target = "insure")
@Mapping(source = "transport.load",target = "load")
@Mapping(source = "transport.unload",target = "unload")
@Mapping(source = "trackingType",target = "trackType")
@Mapping(source = "trackingNo",target = "trackNo")
@Mapping(source = "cargoTypes",target = "cargoType")
@Mapping(source = "transport.vehicle.model",target = "vehicle.model")
@Mapping(source = "transport.vehicle.length",target = "vehicle.length")
@Mapping(source = "transport.vehicle.volume",target = "vehicle.volume")
@Mapping(source = "transport.vehicle.weight",target = "vehicle.weight")
@Mapping(source = "transport.vehicle.quantity",target = "vehicle.quantity")
public @interface MappingOrderCreation {
}
